home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / fractal / fcloud.arc / s_sup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-05  |  577 b   |  29 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3. #include <graphics/display.h>
  4.  
  5. /* make_screen() will open a screen with the supplied characteristics */
  6.  
  7. make_screen(y,w,h,d,color0,color1,mode,name)
  8. SHORT y,w,h,d;
  9. UBYTE color0,color1,*name;
  10. USHORT mode;
  11. {
  12.     struct NewScreen ns;
  13.  
  14.     ns.LeftEdge = 0;
  15.     ns.TopEdge = y;
  16.     ns.Width = w;
  17.     ns.Height = h;
  18.     ns.Depth = d;
  19.     ns.DetailPen = color0;
  20.     ns.BlockPen = color1;
  21.     ns.ViewModes = mode;
  22.     ns.Type = CUSTOMSCREEN;
  23.     ns.Font = NULL;
  24.     ns.DefaultTitle = name;
  25.     ns.Gadgets = NULL;
  26.     ns.CustomBitMap = NULL;
  27.  
  28.     return(OpenScreen(&ns));
  29. }